﻿<%@ Page Title="我的消息" Language="C#" MasterPageFile="~/Wap/Shop/ShopSite.Master" AutoEventWireup="true" CodeBehind="MessageIndex.aspx.cs" Inherits="ZLCMS.Web.Wap.Member.MessageIndex" %>

<%@ Register Src="/wap/shop/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="/wap/shop/js/rem.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pages" runat="server">
    <!--S page -->
    <div data-role="page" id="mypage" class="MessageIndex">

        <!--S content -->
        <div data-role="main" class="ui-content">
            <div class="refundTop">
                <a href="javascript:void(0)" onclick="history.back()" data-ajax="false"><img src="/wap/shop/images/arrowLeftCom.png" /></a>
                我的消息
            </div>
            <ul class="listview">
           <%--     <li>
                    <a href="#" class="ui-btn">
                        <div class="list_left">
                            <img src="/wap/shop/images/msgindex-kefu.png" alt="Alternate Text" />
                        </div>
                        <div class="list_right">
                            <h2><b>客服消息</b></h2>
                            <p>所有与客服的对话都在这里</p>
                        </div>
                    </a>
                </li>--%>
               <%-- <li>
                    <a href="#" class="ui-btn">
                        <div class="list_left">
                            <img src="/wap/shop/images/msgIndex-icon2.png" alt="Alternate Text" />
                        </div>
                        <div class="list_right">
                            <h2><b>优惠促销</b> <span><i>05-25</i><i>11:28</i></span></h2>
                            <p>亲爱的顾客，赶紧去皮卡和发挥非公安合法和佛奥<i></i></p>
                        </div>
                    </a>
                </li>
                <li>
                    <a href="#" class="ui-btn">
                        <div class="list_left">
                            <img src="/wap/shop/images/msgIndex-icon3.png" alt="Alternate Text" />
                        </div>
                        <div class="list_right">
                            <h2><b>账户信息</b> <span><i>05-25</i><i>11:28</i></span></h2>
                            <p>恭喜您获得菠萝啤一箱，请于2015-05-30前填写收货些<i></i></p>
                        </div>
                    </a>
                </li>--%>
            </ul>
        </div>
        <!--E content -->

        <!--S footer -->
        <div data-role="footer" data-position="fixed" data-tap-toggle="false">
            <uc1:Footer ID="Footer1" runat="server" MenuId="M" />
        </div>
        <!--E footer -->
    </div>
    <!--E page -->

     <script src="/wap/lib/common/listviewHandler.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            var handler = $('.listview').listviewHandler();
            handler.initialize({
                loaderBtn: $('#btnMore'), //加载数据按钮（点击加载下一页）
                emptyHtml: '<div style="text-align: center; font-size: 12px; color:#666; margin-top:2em">-- 暂无记录 --</div>', //无记录时显示此html
                itemTemplate: ' <li>' +
                     ' <a data-ajax="false" href="/wap/member/messagelist.aspx?k={Kind}&id={Id}" class="ui-btn">' +
                         ' <div class="list_left">' +
                             ' <img src="/wap/shop/images/msgindex-{Kind}.png" alt="Alternate Text" />' +
                         ' </div>' +
                         ' <div class="list_right">' +
                             ' <h2><b>{Name}{ReadTag}</b> <span><i>{UpdateTime}</i></span></h2>' +
                             ' <p>{Summary}{ReadTag}</p>' +
                         ' </div>' +
                     ' </a>' +
                 ' </li>', //项模板
                pageIndex: 1, //页码（从1起算）
                pageSize: 20, //页大小
                totalCount: 999, //总记录数
                itemHandler: function (data, itemTemplate, container) {//数据各项处理
                    if (data.Status == '0') { data.ReadTag = '<i></i>'; }
                    else { data.ReadTag = ''; }

                    return itemTemplate.format(data);
                },
                command: 'Member.LoadMessageIndex',
                parameter: {}
            });
            handler.nextPage();
        })
    </script>
</asp:Content>
